/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.controlstudent.ws;

import com.controlstudent.entidades.Apoderado;
import com.controlstudent.negocio.ApoderadoNeg;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 *
 * @author Neil
 */
@WebService(serviceName = "ControlStudentWS")
public class ControlStudentWS {

    /**
     * This is a sample web service operation
     */
    @WebMethod(operationName = "hello")
    public String hello(@WebParam(name = "name") String txt) {
        return "Hello " + txt + " !";
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "acceso_apoderado")
    public Apoderado acceso_apoderado(@WebParam(name = "usu") String usu, @WebParam(name = "pass") String pass) {
        return ApoderadoNeg.getInstance().acceso(usu, pass);
    }
}
